package org.wang.gift.exception.code;

public enum StatusCode {
    CODE_500(500,"系统异常"),
    CODE_400(40001,"参数异常"),
    CODE_400_PASSWORD(40004,"两次密码不一致"),
    CODE_400_TENANT_EXSIT(4002,"该店铺已经存在！"),
    CODE_400_TENANT_ADMIN_EXSIT(4003,"该用户已存在！"),
    CODE_400_SMSCODE_ERROR(4004,"短信验证码过期或错误！"),
    CODE_403_FORBIDDEN(4003,"您没有权限，请联系管理员！");
    private int code;
    private String message;

    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    StatusCode() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
